/*
 * @Author: Flying
 * @Date: 2022-02-25 22:43:33
 * @LastEditors: Flying
 * @LastEditTime: 2022-04-12 17:59:40
 * @Description: 通用定义
 */

#pragma once

//基础坐标大小
#define MY_BASE_W_MAX 1024
#define MY_BASE_H_MAX 600

extern int _g_my_ui_w_max;
extern int _g_my_ui_h_max;
extern float _g_my_ui_w_zoom;
extern float _g_my_ui_h_zoom;

//当前屏幕宽高
#define MY_UI_W_MAX _g_my_ui_w_max
#define MY_UI_H_MAX _g_my_ui_h_max
//当前屏幕宽高所需放大比例
#define MY_UI_W_ZOOM _g_my_ui_w_zoom
#define MY_UI_H_ZOOM _g_my_ui_h_zoom

#ifdef F_WINDOWS
#define MY_RESOURCE_PATH "./resource/"
#define MY_RESOURCE_PATH_EX "S./resource/"
#endif

#ifdef F_UBUNTU
#define MY_RESOURCE_PATH "./resource/"
#define MY_RESOURCE_PATH_EX "S./resource/"
#endif

#ifdef F_LINUXARM
#define MY_RESOURCE_PATH "./resource/"
#define MY_RESOURCE_PATH_EX "S./resource/"
#endif

#define MY_PNG_PATH        MY_RESOURCE_PATH_EX "img/"